﻿@{
    ViewBag.Title = "View1";
    Layout = "~/Views/Common/_Layout.cshtml";
}
@using (Html.BeginForm("Create", "Category", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <table class="inputTable">
        <tbody>
            <tr>
                <th>
                    分类名称:
                </th>
                <td>
                    <input type="text" id="Name" name="Name" class="formInput" />
                </td>
            </tr>
            <tr>
                <th>
                    所属分类:
                </th>
                <td>
                    @Html.DropDownList("ParentCategoryId", ViewData["list"] as SelectList, "--请选择--", new { @class = "formInput" })
                </td>
            </tr>
            <tr>
                <th>
                    排列顺序:
                </th>
                <td>
                    <input type="text" id="DisplayOrder" name="DisplayOrder" class="formInput" />
                </td>
            </tr>
            <tr>
                <th>
                    图片路径：
                </th>
                <td>
                    <input type="file" name="PictureUrl" />
                </td>
            </tr>
            <tr>
                <th>
                    页面关键词:
                </th>
                <td>
                    <input type="text" name="MetaKeywords" class="formTextarea">
                </td>
            </tr>
            <tr>
                <th>
                    页面描述:
                </th>
                <td>
                    <textarea name="MetaDescription" class="formTextarea"></textarea>
                </td>
            </tr>
            <tr>
                <th>
                    &nbsp;
                </th>
                <td>
                    <input id="btnOK" type="submit" class="formButton" value="保 存" />
                </td>
            </tr>
        </tbody>
    </table>
    
}
